import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import TabGoods from '@/components/tab/components/goods/goods'
import TabRatings from '@/components/tab/components/ratings/ratings'
import TabSeller from '@/components/tab/components/seller/seller'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      redirect: {name: 'tab-goods'},
      children: [
        {
          path: 'tab-goods',
          name: 'tab-goods',
          component: TabGoods
        },
        {
          path: 'tab-ratings',
          name: 'tab-ratings',
          component: TabRatings
        },
        {
          path: 'tab-seller',
          name: 'tab-seller',
          component: TabSeller
        }
      ]
    }
  ]
})
